<?php


namespace ApplicationTest\Model;

use Model\Factory\TableGatewayFactory;
use Model\TemplateTable;
use PHPUnit_Framework_TestCase;
use ApplicationTest\TestBootstrap;
include __DIR__.'/../../TestBootstrap.php';


class TemplateTest extends PHPUnit_Framework_TestCase
{

    /**
     * @var TemplateTable
     */
    protected  $templateTable;
    protected function setUp()
    {

        $serviceManager =  TestBootstrap::getServiceManager();
        $this->templateTable =  $serviceManager->get('Model\TemplateTable');

    }

    public function testGetAllBlock(){
        $template = $this->templateTable->getTemplate(34);
        $resultSet = $template->getAllBlocks();
        foreach ($resultSet as $aBlock) {
            $aBlock->div_id;
        }


    }






}